{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">回帖管理</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form class="layui-form layui-form-pane" action="{:url('admin/luntan_reply/index')}" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">论坛栏目</label>
                        <div class="layui-input-inline">
                            <select name="category_id">
                                <option value="0">全部</option>
                                {foreach name="category_level_list" item="vo"}
                                <option value="{$vo.id}" {if condition="$cid==$vo.id"} selected="selected"{/if}>{neq name="vo.level" value="1"}|{php}for($i=1;$i<$vo['level'];$i++){echo ' ----';}{/php}{/neq} {$vo.name}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">文章标题</label>
                        <div class="layui-input-inline">
                            <input type="text" name="title" value="" placeholder="请输入标题名称" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <button class="layui-btn">搜索</button>
                    </div>
                </form>
                <hr>
                <form action="" method="post" class="ajax-form">
                <button type="button" class="layui-btn layui-btn-danger layui-btn-small ajax-action" data-action="{:url('admin/luntan_reply/delete')}">删除</button>
                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 15px;"><input type="checkbox" class="check-all"></th>
                        <th style="width: 30px;">ID</th>
                        <th>论坛栏目</th>
                        <th>文章标题</th>
                        <th>回帖人</th>
                        <th>回复内容</th>
                        <th>回帖时间</th>
                        <th>点赞数</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                        {foreach name="replylist" item="vo"}
                            <tr>
                                <td><input type="checkbox" name="ids[]" value="{$vo.id}"></td>
                                <td>{$vo.id}</td>
                                <td>{$category_list[$vo['category_id']]}</td>
                                <td>{$articlelist[$vo['aid']]}</td>
                                <td>{$userlist[$vo['uid']]}</td>
                                <td>{$vo.content}</td>
                                <td>{$vo.create_time}</td>
                                <td>{$vo.replys}</td>
                                <td>
                                    <!-- <a href="{:url('admin/luntan_reply/edit',['id'=>$vo['id']])}" class="layui-btn layui-btn-normal layui-btn-mini">编辑</a> -->
                                    <a href="{:url('admin/luntan_reply/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                                </td>
                            </tr>
                        {/foreach}
                    </tbody>
                </table>
                <!--分页-->
               
                </form>
            </div>
        </div>
    </div>
</div>
{/block}